#include "timer.h"

Timer::Timer(int32_t repeat)
:m_active(false)
,m_period(0)
,m_repeat(repeat) {}

Timer::~Timer()
{
    stop();
}

//关闭定时任务
void Timer::stop()
{
    this->m_active.store(false);
}
